﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Un4seen.Bass;

namespace WhatsPlayingClient.Audio
{
	class AudioFileReader
	{
		public AudioFileReader()
		{
			if (!Bass.BASS_Init(0, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero))
				throw new NotSupportedException("Bass can't be initialized");
		}

		public AudioFile ReadFile(string fileName)
		{
			return new AudioFile(TagLib.File.Create(fileName));
		}
	}
}
